<?php
namespace Swiftx\Bundle\WeChat\Factory;
use Swiftx\Bundle\WeChat\Interfaces\Common\BaseFactory;
use Swiftx\Bundle\WeChat\Model\Seller\Album as Entity;

/**
 * 管理员工厂实现类
 */
class Album extends BaseFactory {

    /**
     * 根据用户名获取用户
     * @param string $id
     * @return Entity
     */
    public function fetchByID(string $id) : ?Entity {
        /** @var Entity $result */
        $result = $this->fetch($id);
        return $result;
    }

    /**
     * 设置实体类型
     * @return string
     */
    public function setEntityClass(): string{
        return Entity::class;
    }

}